package cn.xie.blog.servergateway;

import cn.xie.blog.commonutil.util.IPUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@ComponentScan(basePackages = {"cn.xie.blog"})
public class ServerGatewayApplication {

    private static final Logger log = LoggerFactory.getLogger(ServerGatewayApplication.class);

    public static void main(String[] args) {

        SpringApplication.run(ServerGatewayApplication.class, args);
        log.info("网关服务 starting... ip:{}", IPUtil.getIp());
    }

}
